import { TextField } from '@mui/material';
import MemoList from './MemoList';
import { useState } from 'react';

function Search() {
    const [memoTitle, setMemoTitle] = useState('');
  return (
    <>
    <TextField id="outlined-basic" label="Memo Title" 
    variant="outlined" 
    onChange={(e) => setMemoTitle(e.target.value)}
    value={memoTitle}
    />
    <MemoList memoTitle={memoTitle}/>
    </>
  );
}

export default Search;